package poker.plans.player;

import poker.beliefs.AssignBlind;
import jadex.runtime.IMessageEvent;
import jadex.runtime.Plan;

public class AssignBlindPlan extends Plan {

	public void body() {
		//Get the message
		IMessageEvent assign = (IMessageEvent)getInitialEvent();
		AssignBlind blind = (AssignBlind) assign.getContent();
		//Assign the blind bet
		getBeliefbase().getBelief("blind").setFact(new Integer(blind.getAmount()));
		System.out.println("PLAYER "+getAgentName()+": Blind bet "+blind.getAmount());
	}

}
